package cn.tedu.mybatisdemo.config;

import org.mybatis.spring.annotation.MapperScan;
import org.springframework.context.annotation.Configuration;

@Configuration//加上这个注解就表明此类是一个配置类
@MapperScan("cn.tedu.mybatisdemo.mapper")
public class MybatisConfig {
    static {
        System.out.println("Mybatis的配置类被加载了------");
    }

}
